package com.richfit.cuba.modular.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.richfit.cuba.modular.util.ScanStatus;


@TableName("SYS_ROLE_MENU")
public class SysRoleMenu extends Model<SysRoleMenu> {
	
	private static final long serialVersionUID = 1L;

	@TableField("ROLE_ID")
	private String roleId;
	
	@TableField("MENU_ID")
	private String menuId;

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	@Override
	protected Serializable pkVal() {
		return this.roleId+ScanStatus.KEY_SPLITE_CHAR+this.menuId;
	}

	@Override
	public String toString() {
		return "SysRoleMenu [roleId=" + roleId + ", menuId=" + menuId + "]";
	}
	
}
